﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Microsoft.DirectX.Direct3D;

namespace EdytorWF.Engine
{
    class ViewInfo
    {
        private Microsoft.DirectX.Direct3D.Font font;
        String Text;

        public ViewInfo(Device device)
        {
            Text = "Testing";
            font = new Microsoft.DirectX.Direct3D.Font(device, new System.Drawing.Font("Arial", 12f, FontStyle.Regular));
        }

        public ViewInfo(String text)
        {
            Text = text;
        }

        public void Render()
        {
            font.DrawText(null, Text, new Point(10, 10), Color.White);
        }

        public void SetViewInfo(String text) {Text = text;}
        public String GetViewInfo() {return Text;}
    }
}
